import request from '@/utils/request'

// 添加秒杀商品
export function addkillShop(data) {
  return request({
    url: '/shopKill/shopKill/addkillShop',
    method: 'post',
    data: data
  })
}

// 查询秒杀列表
export function selectShopPromotion(data) {
  return request({
    url: '/shopKill/shopKill/selectShopPromotion',
    method: 'post',
    data: data
  })
}

// 根据id查询该活动商品信息
export function selectOneById(id) {
  return request({
    url: '/shopKill/shopKill/selectOneById',
    method: 'get',
    params: {id}
  })
}

// 删除根据id
export function deleteOneById(id) {
  return request({
    url: '/shopKill/shopKill/deleteOneById',
    method: 'delete',
    params: {id}
  })
}

// 修改商品秒杀信息
export function updateShopPromotion(data) {
  return request({
    url: '/shopKill/shopKill/updateShopPromotion',
    method: 'post',
    data: data
  })
}





